package web.mapper;



import com.cnki.dataSource.DataSource;
import web.entity.User2;


/**
 * @Auther: yukong
 * @Date: 2018/8/13 19:47
 * @Description: UserMapper接口
 */
//@DataSource("slave1")
public interface UserMapper2 {

    /**
     * 根据id查询
     * @param id
     * @return
     */
    @DataSource("slave1")  //slave1
    User2 slave1(Long id);

    /**
     * 根据id查询
     * @param id
     * @return
     */
    @DataSource("slave2")  //slave1
    User2 slave2(Long id);




}
